<include file="./Tpl/Public/header.html" />

<style type="text/css">
  
    .my_score_tea_t{line-height: 40px;padding-bottom: 0px}
    .my_score_tea_t p{text-indent: 30px; line-height: 30px;}
    .my_score_tea_t .strong{color: #b88349; font-weight: bold}
    .my_score_cont dl{line-height: 40px;font-size: 14px}
</style>
    <!--个人中心-评分管理 Start-->
  	<div class="my_score" style="padding:0px;">
  		<?php if(!$res){ ?>
    	<div class="my_score_no">
        	<strong>您还没有开课，暂无评语。</strong>
        	<p>每堂课后，您将在这里翻阅外教的反馈，无论是表扬还是建议，都要积极努力，期待你的下一堂课。<br>您还可以给外教评分，和我们一起监督保证好外教的每一个教师都是全球最顶尖的外教！</p>
        </div>
         <?php }else{ ?>
		 
        <?php foreach ($res as $k=>$r){ 
         	$my_score_date_y = date("Y",$r["create_time"]);
         	$my_score_date_m = date("M",$r["create_time"]);
         	$my_score_date_d = date("d",$r["create_time"]);
    	?>
				
    	<div class="my_score_li cl" >
		 	
				
        	<div class="my_score_date" style="margin-left:40px;display:inline; margin-top:30px; height:100%;" >
            	<span class="my_score_date_d"><?php echo $my_score_date_d; ?></span>
                <span class="my_score_date_y"><?php echo $my_score_date_m." ".$my_score_date_y; ?></span>
            </div>
           
            <div class="my_score_m" style="margin-right:40px;display:inline;" >
            	<div class="my_score_mt"><?php if($r["type"]==1){echo "外教体验课";}elseif($r["type"]==2){echo "Lesson ".$r["lesson_id"].":". $lesson_info[$r["lesson_id"]-1]["title"];;}elseif($r["type"]==10){echo "Lesson ".$r["lesson_id"].":". $r["lesson_title"];}else{ echo "Lesson ".$r["lesson_id"].":". $lesson_info[$r["lesson_id"]]["title"];} ?></div>
                <div class="my_score_c cl">
                	<div class="my_score_tea cl">
                    	<img alt="" src="{:C('WWWURL')}/static/style/images/adv.png">
                        <div class="my_score_tea_t">外教: <strong><?php echo $r["teacher_name"]; ?></strong></div>
                        <div class="my_score_tea_t">得分: <?php if($r["score"]){ ?><?php  echo $a[$r["score"]]; ?> <strong><?php echo 'score: '.$r["score"]; ?></strong><?php } ?> </div>
                        <div class="my_score_tea_t"><?php  if($r["teacher_comment"]){echo $r["teacher_comment"];}else{ echo "您将在24小时内收到外教对这节课的评语，谢谢！";} ?></div>
                    </div>
                    <?php if($r["flag"] == 1){ ?>
                    <div class="my_comment_res">
                   
                    <div class="my_score_cont">
                    	<dl>
                        	<dt>我对外教的评价：</dt>
                            <dd><?php echo $r["my_comment"]; ?></dd>
                        </dl>
                    </div>
                     </div>
                    <?php }else{ ?>
                    <a href="{:U('User/Grade/doGrade')}?id=<?php echo $r['id'] ?>" target="_blank"><div sid="<?php echo $k; ?>" cid="<?php echo $r['cid'] ?>" id="my_score_button_<?php echo $k; ?>" class="my_score_button my_score_button_down">给外教评价<b></b></div></a>
					
					
                    
                    <div class="my_comment_res">
                    </div>
                    <?php } ?>    
					
                </div>
            </div>
        </div>
        <?php } ?>
         <?php } ?>
    </div>
	
    
   

<include file="./Tpl/Public/footer.html" />